package welsir.entity.dos;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Genius
 * @date 2023/03/07 18:16
 **/
@TableName("article_comment")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleComment implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String  content;
    private String username;
    private String email;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date addTime;

    private Integer parentId;
    private Integer foreignId;
    private String profile;
    private String articleId;
}
